import request from "@/utils/request";

// 查询内部调拨列表
export function listMoveInventory(query) {
  return request({
    url: "wh/moveInventory/list",
    method: "get",
    params: query,
  });
}

// 查询内部调拨详细
export function getMoveInventory(id) {
  return request({
    url: "wh/moveInventory/" + id,
    method: "get",
  });
}

// 新增内部调拨
export function addMoveInventory(data) {
  return request({
    url: "wh/moveInventory",
    method: "post",
    data: data,
  });
}

// 修改内部调拨
export function updateMoveInventory(data) {
  return request({
    url: "wh/moveInventory",
    method: "put",
    data: data,
  });
}
// 修改内部调拨
export function confirmMoveInventory(ids) {
  return request({
    url: `wh/moveInventory/${ids}`,
    method: "put",
  });
}

// 删除内部调拨
export function delMoveInventory(id) {
  return request({
    url: "wh/moveInventory/" + id,
    method: "delete",
  });
}
// 删除内部调拨详情
export function delMoveInventoryDetail(ids) {
  return request({
    url: `wh/moveInventoryDetail/${ids}`,
    method: "delete",
  });
}
// 查询内部调拨详情列表
export function listMoveInventoryDetail(query) {
  return request({
    url: "wh/moveInventoryDetail/list",
    method: "get",
    params: query,
  });
}
